<template>
  <el-table :data="plan_list">
    <el-table-column label="安排时间日期" prop="create_time" />
    <el-table-column label="资产" prop="equipment" />
    <el-table-column label="工单 / 维护计划" prop="name" />
    <el-table-column label="计划数量" prop="number" />
  </el-table>
</template>

<script>
import API from '@/api/maintain/part'
export default {
  name: 'PartDeal',
  props: {
    value: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      plan_list: [
        {
          create_time: '2020-01-01',
          equipment: '全自动冲压机',
          name: '周检计划01',
          number: '10'
        }
      ]
    }
  },
  watch: {
    value() {
      this.index()
    }
  },
  created() {
    this.index()
  },
  methods: {
    index() {
      // API.plan({ id: this.value }).then(response => {
      //   this.list = response.data.list
      // })
    }
  }
}
</script>

<style>
</style>
